/**
 * @(#)Client.java, 2012-2-13. 
 * 
 * Copyright 2012 Yodao, Inc. All rights reserved.
 * YODAO PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.buaaer.rpc;


/**
 *
 * @author wangheng
 *
 */
public class Client {
    
    
    ClientConnection clientConnection = new ClientConnection();
    
    
    public Client() {
        
    }
    
    public void start() {
    }
    
    
    private ClientConnection chooseConnection() {
        return clientConnection;
    }
    
    public void sentMessage(Object message) {
        ClientConnection tmp = chooseConnection();
        
        tmp.sentMessage(message);
    }
    
    public static void main(String[] args) {
        Client client = new Client();
        client.sentMessage("1");
    }

}
